package com.intretech.tj.gpp.mapper

import com.baomidou.mybatisplus.core.mapper.BaseMapper
import com.intretech.tj.gpp.entity.DO.RfidNode
import org.apache.ibatis.annotations.Mapper
import org.apache.ibatis.annotations.Select

@Mapper
interface RfidMapper : BaseMapper<RfidNode> {

    @Select(
        """
        SELECT
          id,
          name,
          x,
          y,
          light_id,
          capacity
        FROM rfid_node
        """
    )
    fun selectAll(): List<RfidNode>
}